package com.xyb.entity;

public enum StatusCode{
    SUCCESS(200,"success"),
    ERROR(500,"error"),
    UNDEFINED_ERROR(50000,"未知异常"),
    NULL_POINTER_EXCEPTION(50001,"空指针异常"),

    USER_NOT_EXIST(10001,"用户不存在"),
    USER_HAS_EXIST(10002,"用户已存在"),

    ;

    private int code;
    private String msg;

    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
